<div class="page_title">
    <span class="title_icon"><span class="blocks_images"></span></span>
    <h3>Traumas</h3>
</div>
<div id="content">
    <div class="grid_container">
        <div class="grid_8">
            <div class="widget_wrap">
                <div class="widget_top">
                    <span class="h_icon blocks_images"></span>
                    <h6>Listado de parametros de alerta y scors de <?php echo $nombre; ?></h6>
                </div>
                <div class="widget_content">
                    <table class="display data_tbl">
                        <thead>
                            <tr>
                                <th>Orden</th>
                                <th>Sintoma</th>
                                <th>Puntaje</th>
                                <th>Acciones</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php

                            foreach ($parametros as $p):
                                ?>
                                <tr class="gradeA">
                                    <td>
                                        <?php
                                        echo h($p['Parametroscor']['orden']);
                                        ?>
                                    </td>
                                    <td><?php echo h($p['Parametroscor']['nombre']); ?></td>
                                    <td>
                                        <?php echo h($p['Parametroscor']['puntaje']); ?>
                                    </td>

                                    <td>
                                        <?php
                                        echo $this->Ajax->link($this->Html->image("edit.png", array("alt"=>'edit', 'title'=>'EDITAR')), array(
                                            'action' => 'ajaxcargaedit', $p['Parametroscor']['id'], $p['Parametroscor']['scor_id']
                                                ), array(
                                            'update' => 'cargaedit',
                                            'title' => 'Edicion de datos',
                                            'escape' => false
                                                )
                                        );?>
                                        <?php echo $this->Html->link($this->Html->image("iconos/elim.png", array("alt"=>'delete', 'title'=>'ELIMINAR')), array('action' => 'eliminaparametro', $p['Parametroscor']['id'], $p['Parametroscor']['scor_id']), array('escape'=>false), 'esta seguro de eliminar el sintoma item # ' . $p['Parametroscor']['orden']); ?>
                                    </td>
                                </tr>
                                <?php
                                $i++;
                            endforeach;
                            ?>
                        </tbody>
                        <!--<tfoot>
                            <tr>
                                <th>Nombre</th>
                                <th>Descripcion</th>

                            </tr>
                        </tfoot>
                        -->
                    </table>
                </div>
            </div>
        </div>

        <div class="grid_4">
            <div  id="cargaedit">

                <div class="widget_wrap">
                    <div class="widget_top">
                        <span class="h_icon blocks_images"></span>
                        <h6>Registro parametro de alerta</h6>
                    </div>
                    <div class="widget_content">
                        <?php echo $this->Form->create('Scor', array('action' => 'parametros', 'id' => 'formregistrosintoma', 'class' => 'form_container left_label')); ?>
                        <!--                    <form action="#" method="post" id="regitstraion_form" class="form_container left_label">-->
                        <?php echo $this->Form->hidden('Parametroscor.scor_id', array('value' => $id)) ?>
                        <ul>
                            <li>
                                <div class="form_grid_12">
                                    <label class="field_title" for="name">Item<span class="req">*</span></label>
                                    <div class="form_input">
                                        <?php echo $this->Form->textarea('Parametroscor.nombre', array('class' => 'text required', 'tabindex' => '1')) ?>
                                    </div>
                                </div>
                            </li>
                           <li>
                                <div class="form_grid_12">
                                    <label class="field_title" for="name">Puntaci&oacute;n<span class="req">*(coloque -1 para restar normal ej: 3 para los sumar)</span></label>
                                    <div class="form_input">
                                        <?php echo $this->Form->text('Parametroscor.puntaje', array('class' => 'text required', 'tabindex' => '1')) ?>
                                    </div>
                                </div>
                            </li>
                            <li>
                                <div class="form_grid_12">
                                    <label class="field_title" for="name">Order de listado<span class="req">*(coloque numero)</span></label>
                                    <div class="form_input">
                                        <?php echo $this->Form->text('Parametroscor.orden', array('class' => 'text required', 'tabindex' => '1')) ?>
                                    </div>
                                </div>
                            </li>
                            <li>

                            </li>

                            <li>
                                <div class="form_grid_12">
                                    <div class="form_input">
                                        <button type="submit" class="btn_small btn_blue"><span>Guardar nuevo par&aacute;metro </span></button>
                                        <button type="reset" class="btn_small btn_blue"><span>Limpiar datos</span></button>
                                    </div>
                                </div>
                            </li>
                        </ul>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php //echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $trauma['Trauma']['id']), null, __('Are you sure you want to delete # %s?', $trauma['Trauma']['id']));  ?>



